﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using MBWebService.Core.Classes;

namespace MBWebService.Core.Interfaces
{
    [ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IMediaBrowserCallback))]
    public interface IMediaBrowserServer
    {
        [OperationContract(IsOneWay = false, IsInitiating = true)]
        void Subscribe(PlaybackDevice player);

        [OperationContract(IsOneWay = false, IsInitiating = false, IsTerminating = true)]
        void Unsubscribe(string deviceName);

        [OperationContract(IsOneWay = false, IsInitiating = false, IsTerminating = false)]
        bool Test();
    }
}
